$\forall$$g$:IMonoid, $a$, $b$, $c$:$\mid$$g$$\mid$. ($a$ $\ast$ ($b$ $\ast$ $c$)) = (($a$ $\ast$ $b$) $\ast$ $c$) $\in$ $\mid$$g$$\mid$